/**
 * 
 */
package cn.com.xf.web.form;

import org.springframework.web.multipart.MultipartFile;

/**
 * @author Administrator
 * 
 */
public class BaseForm {

	/**
	 * 总记录条数
	 */
	private String totalRecord;
	/**
	 * 每页显示数
	 */
	private String pageSize;

	/**
	 * 当前页数
	 */
	private String pageNum;
	/**
	 * 排序字段
	 */
	private String orderByField;
	/**
	 * 排序模式（升序，降序）
	 */
	private String orderByMode;
	/**
	 * 搜索字段
	 */
	private String searchValue;
	private String tab;// 首页Tab的选项

	private MultipartFile imgFile;
	private MultipartFile multipartFile;
	private String dir;
	private String order;
	private String path;

	// --------------------

	public String getSearchValue() {
		return searchValue;
	}

	public void setSearchValue(String searchValue) {
		this.searchValue = searchValue;
	}

	public String getPageNum() {
		if(pageNum ==null) {
			pageNum = "";
			return pageNum;
		}else {
			return pageNum.replaceAll(" ", "");
		}
		
		
	}

	public void setPageNum(String pageNum) {
		this.pageNum = pageNum;
	}

	public String getOrderByField() {
		return orderByField;
	}

	public void setOrderByField(String orderByField) {
		this.orderByField = orderByField;
	}

	public String getOrderByMode() {
		return orderByMode;
	}

	public void setOrderByMode(String orderByMode) {
		this.orderByMode = orderByMode;
	}

	public String getTotalRecord() {
		return totalRecord;
	}

	public void setTotalRecord(String totalRecord) {
		this.totalRecord = totalRecord;
	}

	public String getPageSize() {
		return pageSize;
	}

	public void setPageSize(String pageSize) {
		this.pageSize = pageSize;
	}

	public MultipartFile getMultipartFile() {
		return multipartFile;
	}

	public void setMultipartFile(MultipartFile multipartFile) {
		this.multipartFile = multipartFile;
	}

	public String getDir() {
		return dir;
	}

	public void setDir(String dir) {
		this.dir = dir;
	}

	public MultipartFile getImgFile() {
		return imgFile;
	}

	public void setImgFile(MultipartFile imgFile) {
		this.imgFile = imgFile;
	}

	public String getTab() {
		return tab;
	}

	public void setTab(String tab) {
		this.tab = tab;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

}
